<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="./layui/css/layui.css">
</head>

<body>
    <script src="./layui/layui.js"></script>
    <!-- <script src="./layui/layui.js"></script> -->
    <!-- <script>
       layer.msg('hello');
   </script> -->
    <script>
        layer.confirm('删除吗?', {
            icon: 3,
            title: '提示'
        }, function (index) {
            //do something

            layer.close(index);




            $('#id').on('click', function () {
                var that = this;
                layer.tips('只想提示地精准些', that); //在元素的事件回调体中，follow直接赋予this即可
            });
        });
    </script>

</body>

</html>